<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:form action="/View/searchFlights.do">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Search for flights</title>
	</head>
	<body>
	<jsp:include page="menu.jsp"></jsp:include>

	<td align="center">





	<h4 style="color: red"><html:errors /></h4>
	<bean:write name="searchFlightForm" property="error" /> <br>
	<center>
	<table>
		<tr>

			<td align="center">Search for flights<br>
			<br>
			<table>
			
			<tr>
					<td>Flight No:</td>
					<td><html:text property="flight.flightNumber"
						name="searchFlightForm"></html:text></td>
				</tr>

				<tr>
					<td>Airline Name :</td>
					<td><html:select property="flight.airlineName"
						name="searchFlightForm">
						<html:optionsCollection name="searchFlightForm"
							property="airlinenameList" label="label" value="value" />
					</html:select></td>
				</tr>
				<tr>
					<td>Source :</td>
					<td><html:select property="flight.source"
						name="searchFlightForm">
						<html:optionsCollection name="searchFlightForm"
							property="sourceList" label="label" value="value" />
					</html:select></td>
				</tr>

				<tr>
					<td>Destination :</td>
					<td><html:select property="flight.destination"
						name="searchFlightForm">
						<html:optionsCollection name="searchFlightForm"
							property="destList" label="label" value="value" />
					</html:select></td>
				</tr>
				
				<tr>
					<td>Status:</td>
					<td><html:text property="flight.flightStatus"
						name="searchFlightForm"></html:text></td>
				</tr>

				<tr>
					<td>Board Time:</td>
					<td><html:text property="flight.boardTime"
						name="searchFlightForm"></html:text></td>
				</tr>

				<tr>
					<td>Destination Time :</td>
					<td><html:text property="flight.destTime"
						name="searchFlightForm"></html:text></td>
				</tr>

				<tr>
					<td>Total Seats:</td>
					<td><html:text property="flight.totalSeatCount"
						name="searchFlightForm"></html:text></td>
				</tr>
				<tr>
					<td>Available Seats:</td>
					<td><html:text property="flight.availableSeatCount"
						name="searchFlightForm"></html:text></td>
				</tr>

				<tr>
					<td>Price:</td>
					<td><html:text property="flight.price" name="searchFlightForm"></html:text></td>
				</tr>

				<tr>
					<td>Crew Details:</td>
					<td><html:text property="flight.crewDetails"
						name="searchFlightForm"></html:text></td>
				</tr>

			</table>
			<br>
			<html:submit>Search Flight</html:submit>
			</center>
			</td>
		</tr>
	</table>
	</body>
</html:form>